﻿using Shumei.EFCore.SimpleService;
using source.AttributeExtend;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace source.Controllers
{

    /// <summary>
    /// 用户个人信息
    /// </summary>
    public class UserInfoController : Controller
    {
        private UserService userService;
        public UserInfoController()
        { 
            userService = new UserService();
        }

        public ActionResult Index()
        {
            return RedirectToAction("UserMyClass");
        }
        /// <summary>
        /// 用户 我的课程
        /// </summary>
        /// <returns></returns>
        public ActionResult UserMyClass()
        {
            ViewBag.Title = "我的课程";
            return View("UserMyClass");
        }

        public ActionResult UserDetail()
        {
            ViewBag.Title = "个人详情";
            var user = AccountController.GetUserInfo(this.HttpContext);
            return View("UserDetail",user);
        }
	}
}